package com.itheima.service.impl;

import com.itheima.dao.DepartmentsDao;
import com.itheima.entity.Departments;
import com.itheima.service.DepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentsServiceImpl implements DepartmentsService {
    @Autowired
    private DepartmentsDao departmentsDao;
    @Override
    public List<Departments> findAll() {
        return departmentsDao.findAllDepartments();
    }
}
